﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="OpenLightGroup.Common.UserManagement.ChangePasswordChildWindow"
           Width="419" Height="208" 
           Title="Change Password:">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="4" TabIndex="4" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="4" TabIndex="3" />
        <TextBlock HorizontalAlignment="Left" Margin="2,5" TextWrapping="Wrap" Text="Please enter the new password:" VerticalAlignment="Bottom"/>
    	<TextBlock HorizontalAlignment="Left" Margin="2,15,2,5" Grid.Row="2" TextWrapping="Wrap" Text="Confirm Password:" VerticalAlignment="Center"/>
    	<PasswordBox x:Name="ConfirmPasswordBox" Margin="2,5" Grid.Row="3" VerticalAlignment="Top" Password="{Binding NewPassword, Mode=TwoWay}" TabIndex="2"/>
    	<PasswordBox x:Name="PasswordBox" Margin="2,0" Grid.Row="1" d:LayoutOverrides="Height" TabIndex="1"/>
    </Grid>
</controls:ChildWindow>